#ifndef CDTIMEMANAGER_H
#define CDTIMEMANAGER_H

#include "cocos2d.h"
#include "Singleton.h"
#include "CDTime.h"

using namespace cocos2d;
class CDTimeManager : public Singleton<CDTimeManager>
{
public:
	CDTimeManager();
	~CDTimeManager();
public:
	std::map<int,CCDTime*> m_CDTimeList;
	unsigned long PauseStartTime;
	unsigned long PauseEndTime;
	unsigned long SubTime;
public:
	void UpdatePauseTime();
	void CalcSubTime();
	int AddTime(CCDTime * pTimer);
	void DeleteTime(CCDTime * pTimer);

private:
	int dwCount;
	
};





#endif